package com.zyh.scs.common.core.util;



import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @Description
 */
@Getter
@Setter
public class BaseQuery implements Serializable {

	/**
	 * 当前第几页
	 */
	@Schema(description= "页码", example = "1")
	@NotNull(message = "页码不能传空值")
	@Min(value = 0,message = "页码不能为负数")
	private Integer current = 1;

	/**
	 * 每页显示多少条数据
	 */
	@Schema(description= "单页数量", example = "10")
	@Min(value = 1,message = "单页数量不能为负数")
	@NotNull(message = "单页数量不能传空值")
	private Integer size = 10;


}
